package com.wolf;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.Properties;
import java.util.ResourceBundle;

import com.wolf.create.ProjectMain;

public class T {
	public static void main(String[] args) throws IOException, URISyntaxException {
		 new ProjectMain(T.class);
//		File directory = new File("");// 设定为当前文件夹
//		try {
//			System.out.println(directory.getCanonicalPath());// 获取标准的路径
//			System.out.println(directory.getAbsolutePath());// 获取绝对路径
//		} catch (Exception e) {
//		}
//		URL url = T.class.getClass().getResource("/");
//		System.out.println(url.toURI());
//		String b = new T().getClass().getPackage().getName();
//		System.out.println(b.replaceAll("\\.", "/"));
//		ResourceBundle resource = ResourceBundle.getBundle("com/wolf/create/baseConfig.properties");//test为属性文件名，放在包com.mmq下，如果是放在src下，直接用test即可  
//		String key = resource.getString("username");  
//		System.out.println(key);
//		InputStream inStream = ClassLoader.getSystemResourceAsStream("autoCreateConfig.properties");
//		Properties prop = new Properties();  
//		prop.load(inStream);  
//		String key = prop.getProperty("username"); 
//		System.out.println(key);
	}
}